package io.kiki.sba.registry.common.model.dataserver;

import io.kiki.sba.registry.common.model.ClientInterfaceId;
import lombok.Getter;

import java.util.ArrayList;
import java.util.List;

@Getter
public class BatchRequest extends AbstractSlotRequest {
    private final List<Object> request;

    public BatchRequest(ClientInterfaceId clientInterfaceId, int slotId, List<Object> request) {
        super(slotId, clientInterfaceId);
        this.request = new ArrayList<>(request);
    }

    public BatchRequest(int slotId, long slotsEpoch, long slotLeaderEpoc, List<Object> request) {
        super(slotId, null, slotsEpoch, slotLeaderEpoc);
        this.request = new ArrayList<>(request);
    }


}
